package models

type UserRole struct {
	ID         int64  `json:"id" gorm:"column:id;type:int;autoIncrement;primaryKey;comment:'id'"`
	UserId     int64  `json:"userId" gorm:"column:user_id;type:int(11);not null;comment:'用户id'"`
	RoleId     int64  `json:"roleId" gorm:"column:role_id;type:int(11);not null;comment:'角色id'"`
	CreateTime string `json:"createTime" gorm:"column:create_time;type:datetime;not null;comment:'创建时间'"`
	UpdateTime string `json:"updateTime" gorm:"column:update_time;type:datetime;default: null;comment:'修改时间时间'"`
	Status     int    `json:"status" gorm:"column:status;type:tinyint;default:1;comment:'状态1正常-1禁用0未知'"`
}

func (UserRole) TableName() string {
	return "user_role"
}
